package cn.tedu.ivos.audit.mapper;

import cn.tedu.ivos.application.pojo.entity.Application;
import cn.tedu.ivos.audit.pojo.dto.AuditSaveParam;
import cn.tedu.ivos.audit.pojo.entity.Audit;
import cn.tedu.ivos.audit.pojo.vo.AuditVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuditMapper {
    void insert(Audit audit);
    List<AuditVo> selectAuditByApplicationId(Long applicationId);
    void deleteAuditByApplicationId(Long id);
    List<AuditVo> selectAudit(AuditSaveParam auditSaveParam);
    void updateAudit(Audit audit);

    Integer selectRestAuditCount(AuditSaveParam auditSaveParam);

    void deleteById(Long id);
}
